package Exc.service.impl;

import Exc.domain.IpCount;
import Exc.mapper.IpCountMapper;
import Exc.service.IIpCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * The type Ip count service.
 *
 * @author fengke
 */
@Service
public class IpCountServiceImpl implements IIpCountService {
    @Autowired
    private IpCountMapper ipCountMapper;

    @Override
    public List<IpCount> getFromIpCount() {
        List<IpCount> ipCountList = ipCountMapper.listFromIpCount();
        return ipCountList;
    }

    @Override
    public List<IpCount> getDestinationIpCount() {
        List<IpCount> ipCountList = ipCountMapper.listDestinationIpCount();
        return ipCountList;
    }

    @Override
    public List<IpCount> getDestinationPortCount() {
        List<IpCount> ipCountList = ipCountMapper.listDestinationPortCount();
        return ipCountList;
    }

    @Override
    public List<IpCount> getFlowCount() {
        List<IpCount> ipCountList = ipCountMapper.listFlowCount();
        return ipCountList;
    }
}
